package com.zjmzxfzhl.modules.purchase.controller.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

/**
 * @Author timyag
 * @Date 2020/6/28 10:21
 * @Version 1.0
 */
@Getter
@Setter
public class PurchaseOrderDetailVo {

    /**
     * ID
     */
    private Long id;

    /**
     * 采购单ID
     */
    private Long orderId;

    private String orderCode;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String orderDate;

    private Long indentId;

    private String indentCode;

    private Long contractId;

    private String contractCode;

    private String contractState;

    /**
     * 合同金额
     */
    private BigDecimal contractSubAmount;

    /**
     * 到货情况
     */
    private String aogSituation;

    /**
     * 付款情况
     */
    private String paymentSituation;

    /**
     * 付款方式
     */
    private String paymentWay;

    private String invoice;

    /**
     * 供应商ID
     */
    private Long supplierId;


    private String supplierName;

    /**
     * 物料ID
     */
    private Long materialId;

    private String materialCode;

    private String materialName;

    /**
     * 用途 项目名称
     */
    private String projectName;

    /**
     * 物料规格
     */
    private String materialSpecification;

    /**
     * 单价
     */
    private BigDecimal unitPrice;

    /**
     * 单位
     */
    private String unit;


    private BigDecimal materialTotalPrice;


    /**
     * 数量
     */
    private BigDecimal materialNum;

    /**
     * 备注
     */
    private String comment;

}
